﻿@using Controllers
@{
    var func=new MyFunc();
}
<!DOCTYPE HTML>
<html lang="en-US">
<head>
@Html.Partial("_top")
</head>
<body>
    <div id="wrapper">
@Html.Partial("_header")
        <div id="masterbody" class="maxwidth">
            <div class="bk10"></div>
            <div class="lmTitle"><h2>@ViewBag.model.title</h2></div>
            <div class="bk10"></div>
            <div class="contentcon">@Html.Raw(ViewBag.model.content)</div>
						<div class="prvnext">
<div class="prv">
@{var prev=func.GetOne(ViewBag.model.ID,"prev",ViewBag.model.classid);}
上一篇：
@if(prev.ID>0){
<a href="/article/@prev.ID" title="@prev.title">@prev.title</a>
}
else{
<span>没有了</span>
}
</div>
<div class="next">
@{var next=func.GetOne(ViewBag.model.ID,"next",ViewBag.model.classid);}
下一篇：
@if(next.ID>0){
<a href="/article/@next.ID" title="@next.title">@next.title</a>
}
else{
<span>没有了</span>
}</div>
</div>	
        </div>	
			<div id="mcopyright">@Html.Raw(ViewBag.model.copyright)</div>
        <div class="gotop"><a href="#top">返回顶部</a></div>
        <div class="space"></div>
</body>
</html>